﻿using System.Collections.Generic;
using System.Reflection;

namespace LiveTiss.Classes
{
    public static class XML_enum
    {
        public static List<KeyValuePair<string, string>> AtendimentoOdonto { get; set; }

        public static List<KeyValuePair<string, string>> CBOS { get; set; }

        public static List<KeyValuePair<string, string>> CodigoFontePagadora { set; get; }

        public static List<KeyValuePair<string, string>> CodigoOperadora { set; get; }

        public static List<KeyValuePair<string, string>> ConselhoProfissional { get; set; }

        public static List<KeyValuePair<string, string>> Dente { get; set; }

        public static List<KeyValuePair<string, string>> DenteRegiao { get; set; }

        public static List<KeyValuePair<string, string>> EletivaEmergencia { get; set; }

        public static List<KeyValuePair<string, string>> IdentificacaoPrestador { get; set; }

        public static List<KeyValuePair<string, string>> IdentificacaoPrestadorEquipe { set; get; }

        public static List<KeyValuePair<string, string>> IdentificacaoProfissionalCompl { get; set; }

        public static List<KeyValuePair<string, string>> IndicadorAcidente { get; set; }

        public static List<KeyValuePair<string, string>> MotivoSaida { get; set; }

        public static List<KeyValuePair<string, string>> ObitoMulher { get; set; }

        public static List<KeyValuePair<string, string>> ObitoNeonatal { get; set; }

        public static List<KeyValuePair<string, string>> PosicaoProfissao { get; set; }

        public static List<KeyValuePair<string, string>> RegimeInternacao { get; set; }
        
        public static List<KeyValuePair<string, string>> Tabela { get; set; }

        public static List<KeyValuePair<string, string>> TecnicaUtilizada { get; set; }

        public static List<KeyValuePair<string, string>> TipoAcomodacao { get; set; }

        public static List<KeyValuePair<string, string>> TipoAtendimento { get; set; }

        public static List<KeyValuePair<string, string>> TipoConsulta { get; set; }

        public static List<KeyValuePair<string, string>> TipoDoenca { get; set; }

        public static List<KeyValuePair<string, string>> TipoFaturamento { get; set; }

        public static List<KeyValuePair<string, string>> TipoInternacao { get; set; }

        public static List<KeyValuePair<string, string>> TipoLogradouro { get; set; }

        public static List<KeyValuePair<string, string>> TipoSaidaGuiaConsulta { get; set; }

        public static List<KeyValuePair<string, string>> TipoSaidaGuiaSADT { get; set; }

        public static List<KeyValuePair<string, string>> Regiao { get; set; }

        public static List<KeyValuePair<string, string>> UF { get; set; }

        public static List<KeyValuePair<string, string>> UnidadeTempo { get; set; }

        public static List<KeyValuePair<string, string>> ViaDeAcesso { get; set; }


        public static List<KeyValuePair<string, string>> GetEnum(string name)
        {
            PropertyInfo pi = typeof(XML_enum).GetProperty(name);
            var value = (List<KeyValuePair<string, string>>)(pi.GetValue(null, null));
            return value;
        }
    }
}
